package edu.scmu.mybatis_demo;

import edu.scmu.mybatis_demo.mapper.UserMapper;
import edu.scmu.mybatis_demo.pojo.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
class MybatisDemoApplicationTests {

    @Autowired
    private UserMapper mapper;

    @Test
    public void testList(){
        List<User> users = mapper.list();
        for(User u: users){
            System.out.println(u);
        }
    }

}
